/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springWebTestNG.proxy;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author winnie
 */
public class NormalJavaClass {
    private static final Logger LOG = Logger.getLogger(NormalJavaClass.class.getName());
    private static int instanceCount = 0;
    
    public void letsDance() {
        try {
            Thread.sleep(300);
            LOG.log(Level.INFO, "*** Let''s Dance! No.{0}", instanceCount);
        } catch (InterruptedException ex) {
            LOG.log(Level.SEVERE, null, ex);
        }
    }
    
    public void letsDanceWithSomeParams(String param1, int param2) {
        try {
            Thread.sleep(500);
            LOG.log(Level.INFO, "*** Let''s Dance with some params[{0}, {1}]! No.{2}", new Object[]{param1, param2, instanceCount});
        } catch (InterruptedException ex) {
            LOG.log(Level.SEVERE, null, ex);
        }
    }

    public NormalJavaClass() {
        instanceCount++;
    }
    
    
}
